package com.lysj.admin.master.auth.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.lysj.admin.master.common.spring.base.BaseEntity;
import com.lysj.admin.master.common.spring.mpbase.MyEntity;
import com.lysj.admin.master.common.validation.annotation.NotBlank;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.util.Set;

/**
 * @author Created by zk on 2019-12-05 2:14
 * @description
 */
@Data
@Entity
@EqualsAndHashCode(callSuper = true)
@TableName("lysj_auth_role")
@Table(name = "lysj_auth_role")
public class Role extends MyEntity {
    @NotBlank(message = "请填写角色名称")
    private String name;

    private  String type; //用户类型,区分当前登录用户(ISS)

    private transient Set<String> permissionIds;
}
